#ifndef MY_FILE_UTIL_H
#define MY_FILE_UTIL_H 1


#ifdef __cplusplus
extern "C" {
#endif

int filesize(char *filename);

int readfile(char *filename,char **buff);

int readfile_by_pool(char *filename,char **buf,pool_t *pool);

int readfile_by_fd(int fd,char **buff,int len);

int writetofile(char *filename,char *buff,int len);

#ifdef __cplusplus 
}
#endif

#endif //MY_FILE_UTIL_H
